<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>		
		<script type="text/javascript">
			window.onload = function() {
				// var div = document.getElementById("divId");
				// div.innerHTML = "<span style='color: red;'>Hello JQuery</span>";
				
				//$("#divId").html("<span style='color: red;'>Hello JQuery</span>");
				// 返回值不是js dom里面的div，是jquery封装之后
				//var div = $("#divId");
				//div.html("<span style='color: red;'>Hello JQuery</span>");
			}
			
			// 页面加载完之后执行这个
			$(function() {
				var div = $("#divId");
				div.html("<span style='color: red;'>Hello JQuery</span>");
			});
			
		</script>
	</head>
	<body>
		
		<div id="divId"></div>
	</body>
</html>
